package com.bw.network

import com.zyj.retrofit.adapter.FlowCallAdapterFactory
import retrofit2.Retrofit
import retrofit2.adapter.rxjava2.RxJava2CallAdapterFactory
import retrofit2.converter.gson.GsonConverterFactory

class NoneRetrofitlmapl : BaseHttpRetrofitlmpl() {
    override fun readtime(): Long {
        return 60
    }

    override fun connectime(): Long {
        return 60
    }

    override fun writetime(): Long {
        return 60
    }

    override fun createRetrofit(): Retrofit {
        val builder = Retrofit.Builder()
        builder.client(createokHttpBuilder()!!.build())
            .baseUrl(ApiConst.UPLOADURL)
            .addCallAdapterFactory(FlowCallAdapterFactory.create())
            .addConverterFactory(GsonConverterFactory.create())
        return builder.build()
    }
}